import { getAction, deleteAction, putAction, postAction, httpAction, downFile } from '@/api/manage'

/*-----------综合评估-----------*/
const serviceName = '/sjsk-crowmanage-service'
const stExportCompEvaluation = (params) =>
  downFile(`${serviceName}/compEvaluation/stExportCompEvaluation`, params, 'post')
const viewCompEvaluationDetails = (params) =>
  postAction(`${serviceName}/compEvaluation/viewCompEvaluationDetails`, params)
const addCompEvaluation = (params) => postAction(`${serviceName}/compEvaluation/addCompEvaluation`, params)
const exportCompEvaluation = (params) => downFile(`${serviceName}/compEvaluation/exportCompEvaluation`, params, 'post')
const stViewCompEvaluation = (params) => postAction(`${serviceName}/compEvaluation/stViewCompEvaluation`, params)
const viewCompEvaluationHistory = (params) =>
  postAction(`${serviceName}/compEvaluation/viewCompEvaluationHistory`, params)
const alViewCompEvaluation = (params) => postAction(`${serviceName}/compEvaluation/alViewCompEvaluation`, params)
const compEvaluationRevoke = (params) => postAction(`${serviceName}/compEvaluation/compEvaluationRevoke`, params)
const compEvaluationResubmit = (params) => postAction(`${serviceName}/compEvaluation/compEvaluationResubmit`, params)
export {
  stExportCompEvaluation,
  viewCompEvaluationDetails,
  addCompEvaluation,
  exportCompEvaluation,
  stViewCompEvaluation,
  viewCompEvaluationHistory,
  alViewCompEvaluation,
  compEvaluationRevoke,
  compEvaluationResubmit,
}
